<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
    <body>
        <h:form>
        <h:panelGrid columns="2">
            <h:outputLabel value="Sınav adı: "/>
            <p:inputText value="#{CourseBean.examName}"/>
            <p:dataGrid var="result" value="#{CourseBean.result}">
                <p:column>
                    <h:panelGrid columns="2">
                        <h:outputLabel value="Öğrenci adı: #{result.student.fullName}"/>
                        <h:inputText value="#{result.result}"/>
                    </h:panelGrid>
               </p:column>
           </p:dataGrid>
        </h:panelGrid>
        <p:commandButton ajax="false" value="Açıkla" action="#{CourseBean.announceExam()}"/>
        </h:form>
    </body>
</html>
